/*
* @author guojiteng
*/
'use strict'
import request from '@/utils/request'

/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: { dictCode }
  })
}

/**
 * 获取待审核列表
 * @param {*} query
 */
export function queryPage(query) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/groupAudit/queryPage',
    method: 'post',
    data: query
  })
}
/**
 * 获取小组分类列表
 */
export function getClassifyTree(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/activityClassify/getClassifyTree',
    method: 'POST',
    data
  })
}
/**
 * 审核
 */
export function audit(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/groupAudit/groupAudit',
    method: 'POST',
    data
  })
}

/**
 * 详情
 */
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/groupAudit/get',
    method: 'post',
    data
  })
}
